package com.leyou.pojo.dto;

import com.leyou.common.dto.BaseDTO;
import com.leyou.common.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class CategoryDto extends BaseDTO {
    private Long id;
    private String name;
    private Long parentId;
    private Integer sort;
    private Boolean isParent;

    public CategoryDto(BaseEntity entity){
        super(entity);
    }


}
